﻿(function(){
	if(!Mui){
		return;
	}
	Mui.regist('mammoo.form',{
		jsFullPath:'/js/common/mammoo.form.js',
		requires:'Mui.form.base,Mui.tip'
	});
	
	
	Mui.regist('jquery.plug.switchtab',{
		jsFullPath:'/js/plug/jquery-plug-switchtab.js',
		requires:'resource'
	});
	
})();

(function(){
	if(!Mui){
		return;
	}
	
	Mui.use('Mui.util.Menu',function(Mui){
		var cls={
			cls:'mo-menuitem',
			hover:'mo-menuitem-hover',
			item:'mo-menuitem-item',
			items:'mo-menuitem-items',
			itemHover:'mo-menuitem-itemhover'
		}
		var m=new Mui.util.MenuItem({
			renderTo:'m_mui',
			cls:cls,
			items:[{
				text:'MUI API',
				href:'/mui/docs/',
				target:'_blank'
			},{
				text:'MUI Samples',
				href:'/mui/samples/',
				target:'_blank'
			},{
				text:'Download MUI',
				href:'/mui/download/',
				target:'_blank'
			}]
		});
		
		var mmail=new Mui.util.MenuItem({
			renderTo:'m_mail',
			cls:cls,
			items:[{
				text:'M-Mail离线版',
				href:'#',
				target:''
			},{
				text:'M-Mail在线版',
				href:'/mmail/index.html',
				target:''
			},{
				text:'M-Mail在线版使用手册',
				href:'#',
				target:''
			}]
		});
		
	});
})();